package com.smarttest.common.util.mqtt.v2;

import org.msgpack.annotation.Message;

@Message
public class Gpsmsg2 {

    private int type;
    private int code;
    private String cmd;
    private int mode;
    private String deviceno;
    private String time;
    private double lng;
    private double lat;
    private int speed;
    private int course;
    private GpsStatus2 gpsStatus2;
    private Temperature2 temperature2;

    @Override
    public String toString() {
        return "Gpsmsg2 [type=" + type + ", code=" + code + ", cmd=" + cmd + ", mode=" + mode + ", deviceno="
                + deviceno + ", time=" + time + ", lng=" + lng + ", lat=" + lat + ", speed=" + speed + ", course="
                + course + ", gpsStatus2=" + gpsStatus2 + ", temperature2=" + temperature2 + "]";
    }

    public Gpsmsg2() {
        gpsStatus2 = new GpsStatus2();
        temperature2 = new Temperature2();
    }

    public Gpsmsg2(int type,int code, String cmd, int mode, String deviceno, String time, double lng, double lat, int speed,
            int course, GpsStatus2 gpsStatus2, Temperature2 temperature2) {
        super();
        this.type = type;
        this.code = code;
        this.cmd = cmd;
        this.mode = mode;
        this.deviceno = deviceno;
        this.time = time;
        this.lng = lng;
        this.lat = lat;
        this.speed = speed;
        this.course = course;
        this.gpsStatus2 = gpsStatus2;
        this.temperature2 = temperature2;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getDeviceno() {
        return deviceno;
    }

    public void setDeviceno(String deviceno) {
        this.deviceno = deviceno;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getCourse() {
        return course;
    }

    public void setCourse(int course) {
        this.course = course;
    }

    public GpsStatus2 getGpsStatus2() {
        return gpsStatus2;
    }

    public void setGpsStatus(GpsStatus2 gpsStatus2) {
        this.gpsStatus2 = gpsStatus2;
    }

    public Temperature2 getTemperature2() {
        return temperature2;
    }

    public void setTemperature2(Temperature2 temperature2) {
        this.temperature2 = temperature2;
    }


}
